#include <iostream>
using namespace std;
int main()
{
    int n,n2, aux;
    cin>>n;
    cin>>n2;
    aux=n;

        while(n<=n2)
        {
            cout<<n<<endl;
            n=n+1;
            aux=aux+1;
        }
        while(n>=n2)
        {
           cout<<n<<endl;
           n=n-1;
           aux=aux+1;
        }

    return 1;
}
